<?php
/**
 * @copyright 
 * @license https://opensource.org/licenses/Apache-2.0
 * @link https://www.gougucms.com
 */

namespace app\admin\validate;
use think\Validate;

class DeviceLogValidate extends Validate
{
    protected $rule = [
    'msgId' => 'require',
    'device_status' => 'require',
    'weight' => 'require',
    'status' => 'require',
    'create_time' => 'require',
];

    protected $message = [
    'msgId.require' => 'msgid不能为空',
    'device_status.require' => '状态: normal正常 low:酒量不足不能为空',
    'weight.require' => '剩余酒量(ml)不能为空',
    'status.require' => '设备状态:run:运行中，error:故障，leisure:空闲不能为空',
    'create_time.require' => '记录时间不能为空',
];
}